package echat.future.cn.echat.my.utils;

import java.util.ArrayList;
import java.util.List;

import echat.future.cn.echat.R;
import echat.future.cn.echat.home.ChatActivity;
import echat.future.cn.echat.my.bean.MeJumpBean;
import echat.future.cn.echat.my.bean.UserBean;
import echat.future.cn.echat.my.view.ArtPhotoActivity;
import echat.future.cn.echat.my.view.AuthenticationUserActivity;
import echat.future.cn.echat.my.view.AuthenticationZhuboActivity;
import echat.future.cn.echat.my.view.BlacklistActivity;
import echat.future.cn.echat.my.view.CollegeActivity;
import echat.future.cn.echat.my.view.DividePlanActivity;
import echat.future.cn.echat.my.view.IntimateActivity;
import echat.future.cn.echat.my.view.MyFanseActivity;
import echat.future.cn.echat.my.view.MyVideoActivity;
import echat.future.cn.echat.my.view.SendGroupMessageActivity;
import echat.future.cn.echat.my.view.SettingActivity;
import echat.future.cn.echat.my.view.WalletActivity;

/**
 * 我的页面帮助
 * 根据用户类型生成数据
 */
public class MeHelper {
    /**
     * 根据用户类型 获取我的->跳转列表
     * @param userBean
     * @return
     */
    public static List<MeJumpBean> getJumpBean(UserBean userBean){
        if(userBean.getUser_role() == UserBean.TYPE_ANCHOR){
            return getAnchorJumpBean();
        }else if(userBean.getUser_role() == UserBean.TYPE_ORIDINARY){
            return getOrdinaryUserJumpBean();
        }else{
            return getOrdinaryUserJumpBean();
        }
    }

    /**
     * 主播用户
     * @return
     */
    private   static List<MeJumpBean> getAnchorJumpBean(){
        List<MeJumpBean> jumpBeans = new ArrayList<>();
        jumpBeans.add(new MeJumpBean("小视频", R.mipmap.wode_shiping, MyVideoActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("我的艺术照", R.mipmap.wode_zhaopian,ArtPhotoActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("与我亲密的", R.mipmap.wode_qinmi,IntimateActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("我的钱包", R.mipmap.wode_qianbao, WalletActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("分成计划", R.mipmap.wode_fencheng, DividePlanActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("群发私信", R.mipmap.wode_qunfa,SendGroupMessageActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("邀请粉丝", R.mipmap.wode_yaoqing,MyFanseActivity.class.getName()));
//        jumpBeans.add(new MeJumpBean("美颜设置", R.mipmap.wode_meiyan,"meWallet"));
        jumpBeans.add(new MeJumpBean("在线客服", R.mipmap.wode_shiping, ChatActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("设置", R.mipmap.wode_shezhi,SettingActivity.class.getName()));
        jumpBeans.add(new MeJumpBean(true,"黑名单",R.mipmap.wode_heimingdan, BlacklistActivity.class.getName()));
        return jumpBeans;
    }

    /**
     * 普通用户
     * @return
     */
    private static List<MeJumpBean> getOrdinaryUserJumpBean(){
        List<MeJumpBean> jumpBeans = new ArrayList<>();
        jumpBeans.add(new MeJumpBean("我的钱包", R.mipmap.wode_qianbao, WalletActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("分成计划", R.mipmap.wode_fencheng, DividePlanActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("我是主播", R.mipmap.wode_zhubo, AuthenticationZhuboActivity.class.getName()));
//        jumpBeans.add(new MeJumpBean("美颜设置", R.mipmap.wode_meiyan,"meWallet"));
        jumpBeans.add(new MeJumpBean("我的收藏", R.mipmap.wode_shoucang, CollegeActivity.class.getName()));
        jumpBeans.add(new MeJumpBean("在线客服", R.mipmap.wode_kefu, ChatActivity.class.getName()));
//        jumpBeans.add(new MeJumpBean("成为正式用户", R.mipmap.wode_rz, AuthenticationUserActivity.class.getName()));
        jumpBeans.add(new MeJumpBean(true,"设置", R.mipmap.wode_shezhi, SettingActivity.class.getName()));
        return jumpBeans;
    }

    /**
     * 正式用户
     * @return
     */
    private static List<MeJumpBean> getFormalUser(){
        List<MeJumpBean> jumpBeans = new ArrayList<>();
        return null;
    }

    /**
     * 身高
     * @return
     */
    public static List<String> getHeight(){
        List<String> heights = new ArrayList<>();
        for(int i=150;i<=180;i++){
            heights.add(i+"cm");
        }
        return heights;
    }



    /**
     * 身高
     * @return
     */
    public static List<String> getWeight(){
        List<String> heights = new ArrayList<>();
        for(int i=40;i<=60;i++){
            heights.add(i+"kg");
        }
        return heights;
    }


    /**
     * 身高
     * @return
     */
    public static List<String> getSex(){
        List<String> heights = new ArrayList<>();
        heights.add("男");
        heights.add("女");
        return heights;
    }
}
